﻿using System;
using System.Web.UI;



namespace mojoPortal.Web.RS.Modules.MLS
{
    public partial class RSPublicMLS : RSBasePage
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //InitializeReadyServicePage("Ready Service MLS");
                if(Request.QueryString["action"] == "add")
                    ucPublicMLSControl.LoadMLSData(0);
                if (Request.QueryString["action"] == "edit")
                {
                    if (Request.QueryString["item"] != null)
                    {
                        int mlsid = int.Parse(Request.QueryString["item"].ToString());
                        ucPublicMLSControl.LoadMLSData(mlsid);
                    }
                }
            }
        }

    }

}
